<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:text="${users}">users</div>
    <ul>
        <li th:each="user,stat : ${users}">
            stat:<span th:text="${stat}"></span>
            name:<span th:text="${user.name}"></span>
            age:<span th:text="${user.age}"></span>
        </li>
    </ul>

    <ul>
        <li th:each="user,stat : ${users}">
            index:<span th:text="${stat.index+1}">stat</span>
            name:<span th:text="${user.name}">name</span><br/>
            age:<span th:text="${user.age}">age</span>
        </li>
    </ul>
</body>
</html>